package com.sky.controller.user;

import com.sky.result.Result;
import com.sky.service.UserDishService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/user/dish")
public class UserDishController {
	
	private final UserDishService userDishService;
	
	public UserDishController(UserDishService userDishService) {this.userDishService = userDishService;}
	
	@GetMapping("/list")
	public Result dishList(Long categoryId) {
		return userDishService.dishList(categoryId);
	}
}
